package edu.zut.cs.software.estateagent.message.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import edu.zut.cs.software.base.service.impl.GenericManagerImpl;
import edu.zut.cs.software.estateagent.message.dao.MessageDao;
import edu.zut.cs.software.estateagent.message.domain.Message;
import edu.zut.cs.software.estateagent.message.service.MessageManager;


@Component
@Transactional
public class MessageManagerImpl extends GenericManagerImpl<Message, Long> implements MessageManager {

	MessageDao messageDao;

	@Override
	public Message findbyUsername(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	@Autowired
	public void setContractDao(MessageDao messageDao) {
		this.messageDao = messageDao;
		this.dao = this.messageDao;
	}

}
